<html>
  <head>
  <link href="sub/sheet1.css" rel="stylesheet">
  </head>
  <body>
     body
     <div id="firstdiv" class="bkgimage"></div>
     <script>
        var style1;
        if(window.getComputedStyle) {
            style1 = window.getComputedStyle(document.getElementById('firstdiv'), '');
        }
        else {
	        style1 = document.getElementById('firstdiv').currentStyle;
	    }
        alert('background-image:' + style1.backgroundImage);
     </script>
     <hr>
     <div style="border: dashed red 5px; background: url('sub/test1.gif'); width: 200px; height: 200px;"></div>
     <hr>
     <table width="100" height="100" border="1" background="sub/test1.gif"><tr><td>blah</td></tr></table>
     <hr>
     <table width="150" height="150" border="2"><tr><td background="sub/test1.gif">blah</td><td>&nbsp;</td></tr></table>
  </body>
</html>